package de.szut.tictactoe.game;

import java.util.ArrayList;

public class FieldGroup {
	private ArrayList<Box> boxes;

	public ArrayList<Box> getBoxes() {
		return boxes;
	}

	public void setBoxes(ArrayList<Box> diagonalBoxes) {
		this.boxes = diagonalBoxes;
	}
	
	public void addBox(Box box) {
		boxes.add(box);
	}
	
	public boolean containsBoxThrice() {
		Box firstBox = boxes.get(0);
		for (Box currentBox : boxes) {
			if (firstBox != currentBox) {
				return false;
			}
		}
		return true;
	}
	
}
